<%@ Page Title="CMS_Article Item" Language="C#" AutoEventWireup="true" CodeBehind="CMS_ArticleItem.aspx.cs" Inherits="Youz.CreditRepay.Manage.CMS_ArticleItem" %>
<script>
    loadCSS("Controls/KindEditor/themes/default/default.css");

    var requireJS = [
        "Controls/KindEditor/kindeditor-min.js"
    ];
    loadJS(requireJS, "assets/js/page/CMS_ArticleItem.js?3");
</script>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h2><i class="fa fa-edit"></i><%=string.IsNullOrEmpty(WebHelper.Get("ID"))?"新增公告":"编辑公告" %></h2>
            </div>
            <div class="panel-body">
                <form id="frm" class="form-horizontal" method="post" enctype="multipart/form-data" action="CMS/Handlers/CMS_ArticleHandler.ashx?type=save">
                    <input id="ID" name="ID" type="hidden" value="<%:WebHelper.Get("ID") %>"/>
                    <input id="MenuID" name="MenuID" type="hidden" value="<%:WebHelper.Get("MenuID") %>" />
                    <div class="form-group">
                        <label class="control-label" ><%: R(LanguageModule.CMS_Article, "Title", "标题") %></label>
                        <div class="controls">
                            <input type="text" id="Title" name="Title" maxlength="50" class="form-control" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" ><%: R(LanguageModule.CMS_Article, "Content", "内容") %></label>
                        <div class="controls">
                            <textarea id="Content" name="Content" rows="3" class="form-control" style="height:500px;"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" ><%: R(LanguageModule.CMS_Article, "Cover", "封面") %></label>
                        <div class="controls">
                            <input type="file" name="_Cover" />
                            <input type="hidden" name="Cover" />
                            <img id="imgCover" style="width:100px;" />
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="RoleDesc"><%: R(LanguageModule.CMS_Article, "IsPublish", "是否发布") %></label>
                        <div class="controls">
                            <label class="switch switch-info">
                                <input type="checkbox" id="IsPublish" name="IsPublish" checked="checked" class="switch-input" />
                                <span class="switch-label" data-on="On" data-off="Off"></span>
                                <span class="switch-handle"></span>
                            </label>
                        </div>
                    </div>
                    
                    <div class="alert alert-danger" style="display: none;">
                        <button type="button" class="close" data-dismiss="alert">×</button><strong>Oh snap!</strong><span class="content"></span>
                    </div>
                    <div class="form-actions">
                        <button class="btn btn-success" type="button" id="btnSubmit"><%: R(LanguageModule.M_Common, "btnSubmit", "保存修改") %></button>
                        <button class="btn btn-success" type="button" id="btnContinue"><%: R(LanguageModule.M_Common, "btnContinue", "保存&继续新增") %></button>
                        <button class="btn btn-default" type="button" id="btnCancel"><%: R(LanguageModule.M_Common, "btnCancel", "取消") %></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

